package other_其他模式.mvc_pattern_模型视图控制器模式;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/10/10:22
 * @Description:
 */
public class StudentController {

	private Student model;
	private StudentView view;

	public StudentController(Student model, StudentView view) {
		this.model = model;
		this.view = view;
	}

	public Student getModel() {
		return model;
	}

	public void setModel(Student model) {
		this.model = model;
	}

	public StudentView getView() {
		return view;
	}

	public void setView(StudentView view) {
		this.view = view;
	}

	public StudentController() {
	}

	public void updateView() {
		view.view(model);
	}
}
